ContentEgg\application\helpers\TemplateHelper D

Total Complexity 755
Dependencies 15
Dependents 19
Total lines 3,417
Lines of code 2,616
Logical lines of code 1,487
Comment lines 38
Methods 180
Properties 13

Methods 180

Method Rating Maintainability Complexity Lines of code
isVisible()
D
33 52 70
sortByPrice()
D
32 43 89
getMerchantImageUrl()
C
38 24 67
getItemsPriceHistory()
B
36 22 79
replacePatterns()
A
44 12 52
getMerhantName()
A
48 13 32
filterData()
A
48 11 35
isVisiblePriceUpdate()
A
55 12 17
chartjs()
A
34 4 136
getItemPriceHistory()
A
45 9 42
ratingStars()
A
52 10 23
priceHistoryMorrisChart()
A
42 7 52
getStockStatusStr()
A
56 9 17
getImageSizesRatio()
A
50 8 29
generateStaticRatings()
A
51 8 27
getLastUpdateFormattedAmazon()
A
52 8 25
getOptimizedImage()
A
56 8 16
getGallery()
S
50 7 30
badge()
S
49 7 28
newUsedPrice()
S
59 8 12
button()
S
50 7 27
number()
S
50 7 27
getMerchantLogoUrl()
S
51 7 25
getShopCoupons()
S
53 7 22
rowCols()
S
54 7 20
getTimeLeft()
S
48 6 35
getMerchnatInfo()
S
52 6 27
getRatingValueScale10()
S
60 7 11
truncate()
S
52 6 26
getShopInfo()
S
54 6 20
getLastUpdate()
S
58 6 16
isModuleDataExist()
S
60 6 13
getGroupsList()
S
52 5 28
colsOrder()
S
60 6 12
printShopInfoModal()
S
51 5 27
isVisibleDisclaimer()
S
61 6 11
printShopCouponsModal()
S
51 5 25
prepareParamHideVisible()
S
47 4 39
getCustomLogo()
S
55 5 22
generateAddAllToCartUrl()
S
55 5 19
selectItemByDescription()
S
57 5 17
getGtagClickEvent()
S
56 5 17
getLastUpdateFormatted()
S
58 5 15
viewMorrisChart()
S
49 4 30
getMerchantIconUrl()
S
58 5 14
getAmazonLink()
S
60 5 14
shippingCost()
S
57 5 14
getStockStatusClass5()
S
61 5 12
getStockStatusClass()
S
61 5 12
titleWithNumber()
S
51 4 27
colorMode()
S
61 5 11
couponsOffcanvas()
S
52 4 24
shopInfoOffcanvas()
S
52 4 24
getDaysAgo()
S
55 4 21
sortByBadgeAndPriority()
S
55 4 20
btnText()
S
56 4 20
getShopsList()
S
57 4 18
adjustBrightness()
S
57 4 15
findAmazonLocales()
S
59 4 15
getColOrder()
S
63 5 10
filterByGroup()
S
59 4 15
filterDataByModule()
S
59 4 15
formatPriceCurrency()
S
59 4 15
sortByNumber()
S
60 4 13
displayImage()
S
60 4 12
eanParamPrepare()
S
62 4 12
logo()
S
60 4 12
getCommonCurrencyCode()
S
61 4 12
priceChangesProducts()
S
56 3 18
printShopInfoPopover()
S
55 3 18
getMerchantLogoDir()
S
59 3 16
title()
S
58 3 16
isAmazonPriceExists()
S
66 4 8
borderColor()
S
59 3 15
printRel()
S
60 3 15
formatDate()
S
67 4 7
isNumbered()
S
67 4 8
getNumberFromTitle()
S
63 4 10
priceUpdateAmazon()
S
60 3 13
number_format_i18n()
S
61 3 13
border()
S
61 3 12
buildTagParams()
S
61 3 12
mergeData()
S
63 3 12
mergeAll()
S
63 3 12
filterDataByType()
S
61 3 12
prime()
S
61 3 11
shopInfo()
S
61 3 11
linkAttr()
S
62 3 11
coupons()
S
61 3 11
ratingRing()
S
52 2 21
cashback()
S
68 3 7
convertRatingScale()
S
66 3 8
icon()
S
65 3 8
titleTag()
S
66 3 8
convertRatingScale10()
S
68 3 6
isPriceAvailable()
S
68 3 8
addShopInfoOffcanvases()
S
68 3 7
printShopCoupons()
S
67 3 7
printShopInfo()
S
64 3 9
selectItemByBadge()
S
67 3 8
addCouponOffcanvases()
S
68 3 7
getBlockDisclimerText()
S
69 3 6
getPostDisclimerText()
S
69 3 6
getAmazonPriceDisclimerText()
S
64 3 9
dateFormatFromGmtAmazon()
S
65 3 9
getNameFromDomain()
S
64 3 9
printRating()
S
65 3 8
mergeAndSort()
S
65 3 9
getCashbackStr()
S
67 3 7
ratingProgress()
S
58 2 14
getChance()
S
61 2 13
badge3()
S
61 2 13
badge2()
S
61 2 13
priceHistoryPrices()
S
61 2 12
badge1()
S
61 2 12
printMerchantInfo()
S
63 2 11
getAssociateTagForAmazonLocale()
S
64 2 11
sortAllByPrice()
S
68 2 7
compareByBadgeAndPriority()
S
67 2 7
promo()
S
72 2 5
conditionClass()
S
70 2 6
priceHistoryMin()
S
67 2 7
getMinPriceItem()
S
72 2 5
priceHistoryMax()
S
67 2 7
imgRatio()
S
67 2 7
stockStatus()
S
64 2 9
getMaxPriceItem()
S
72 2 5
isVisibleDisclaimerOrPriceUpdate()
S
77 2 3
description()
S
72 2 5
getCurrentUserEmail()
S
69 2 7
priceHistorySinceDate()
S
68 2 7
dateFormatFromGmt()
S
64 2 9
merchant()
S
75 2 4
getPrivacyUrl()
S
65 2 10
printProgressRing()
S
64 2 8
formatDatetime()
S
64 2 10
getPriceColor()
S
69 2 7
getButtonColor()
S
69 2 7
priceClass()
S
75 2 4
isCashbackTrakerActive()
S
66 2 10
oldPrice()
S
71 2 5
tabsType()
S
69 2 6
price()
S
71 2 5
arrayToTagParameters()
S
64 2 10
getPriceHistoryHighestItem()
S
80 1 3
getPriceHistoryLowestItem()
S
80 1 3
getPriceHistorySince()
S
80 1 3
getDeliveryAtCheckout()
S
80 1 3
splitAttributeName()
S
78 1 3
minifyBasic()
S
74 1 4
price_format_i18n()
S
77 1 3
isPriceAlertAllowed()
S
78 1 3
getLowestPriceItem()
S
73 1 5
getCurrencyPos()
S
80 1 3
getCurrencySymbol()
S
80 1 3
getCurrencyName()
S
80 1 3
openATag()
S
73 1 5
getMerhantLogoUrl()
S
78 1 3
currencyCode()
S
79 1 3
esc_html_e()
S
79 1 3
currencyTyping()
S
80 1 3
getButtonColorHower()
S
78 1 3
t()
S
80 1 3
getRelValue()
S
75 1 4
generateGlobalId()
S
79 1 3
filterItemsByGroup()
S
70 1 6
printAmazonDisclaimer()
S
78 1 3
getAmazonDisclaimer()
S
80 1 3
deliveryAtCheckout()
S
79 1 3
getMerhantIconUrl()
S
78 1 3
subtitle()
S
78 1 3
couponBtnText()
S
77 1 3
buyNowBtnText()
S
77 1 3
closeATag()
S
81 1 3
link()
S
71 1 5
fixNumberedTitle()
S
72 1 5
getBlankImg()
S
79 1 3
getMerchantName()
S
78 1 3
disclaimer()
S
80 1 3
__()
S
80 1 3